package com.wodan.zhongjinjicang.common.orm.bytesconverter;

/**
 * 类型转换器
 * @ClassName: Converter 
 * @Description: TODO
 * @author Administrator
 * @date 2015-1-10 下午3:51:13 
 * @history 
 *
 */
public interface Converter {
	/**
	 * 将对象转换为str
	 * @Description:
	 * @param obj
	 * @return
	 */
	public String toString(Object obj);
	
	/**
	 * 将string转换为obj
	 * @Description:
	 * @param str
	 * @return
	 */
	public Object fromString(String str);

	/**
	 * 判断是否为空
	 * @Description:
	 * @param obj
	 * @return
	 */
	public boolean isNullOrEmpty(Object obj);
}
